package com.hmo.appshop;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

public final class AppBean implements Parcelable {

    private int id;
    private Bitmap logo;
    private String logoName;
    private String name;
    private String[] picture;
    private String param;
    private String about;
    private String apk;
    private int type;

    public AppBean() {
    }

    public String getLogoName() {
        return logoName;
    }

    public void setLogoName(String logoName) {
        this.logoName = logoName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getApk() {
        return apk;
    }

    public void setApk(String apk) {
        this.apk = apk;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Bitmap getLogo() {
        return logo;
    }

    public void setLogo(Bitmap logo) {
        this.logo=logo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getPicture() {
        return picture;
    }

    public void setPicture(String[] picture) {
        this.picture = picture;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getAbout() {
        return about;
    }

    public void setAbout(String about) {
        this.about = about;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeParcelable(this.logo, flags);
        dest.writeString(this.name);
        dest.writeStringArray(this.picture);
        dest.writeString(this.param);
        dest.writeString( this.about);
        dest.writeString( this.apk);
        dest.writeInt(this.type);
    }

    protected AppBean(Parcel in) {
        this.id = in.readInt();
        this.logo = in.readParcelable(Bitmap.class.getClassLoader());
        this.name = in.readString();
        this.picture = in.createStringArray();
        this.param = in.readString();
        this.about = in.readString();
        this.apk=in.readString();
        this.type = in.readInt();
    }

    public static final Creator<AppBean> CREATOR = new Creator<AppBean>() {
        @Override
        public AppBean createFromParcel(Parcel source) {
            return new AppBean(source);
        }

        @Override
        public AppBean[] newArray(int size) {
            return new AppBean[size];
        }
    };
}
